package 线程.demo04;

import com.sun.org.apache.bcel.internal.generic.NEW;

/**
 * @author wql
 * @version 1.0
 * @date 2022/10/31 15:48
 */

public class Test {
    public static void main(String[] args) {
        BankCard bankCard = new BankCard(0);
        Boy boy = new Boy(bankCard);
        Girls girls = new Girls(bankCard);
        Thread thread = new Thread(boy,"冤种");
        Thread thread1 = new Thread(girls,"海王");
        thread.start();
        thread1.start();

    }
}
